package com.sharainy.service.impl;


import com.sharainy.dao.SettlementMapper;
import com.sharainy.pojo.Settlement;
import com.sharainy.pojo.SingleSettlement;
import com.sharainy.service.SettlementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SettlementServiceImpl implements SettlementService {
    @Autowired
    private SettlementMapper settlementMapper;
    @Override
    public Settlement selectNewSettlement(String merchantId) {
        return settlementMapper.selectNewSettlement(merchantId);
    }

    @Override
    public List<Settlement> selectSettlementById(Map<String, String> map) {
        return settlementMapper.selectSettlementById(map);
    }

    @Override
    public List<SingleSettlement> selectSingleSettle(Map<String, String> map) {
        return settlementMapper.selectSingleSettle(map);
    }

    @Override
    public Settlement selectBySettlementId(int id) {
        return settlementMapper.selectBySettlementId(id);
    }
}
